
<% var bundlePrefix = isDev ? 'http://localhost:8001' : '/dist' %> 
<% var vendorJS = bundlePrefix + '/vendor.js' %> 
<% var mainJS = bundlePrefix + '/main.js' %>
<% var vendorCSS = '/dist/vendor.css' %>
<% var mainCSS = '/dist/main.css' %>


<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="minimum-scale=1, initial-scale=1, width=device-width" />
  <title><%- title %></title>
  <link rel="icon" href="/assets/images/logo.png" type="image/x-icon" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <% if (!isDev) { %>
  <link href="<%- vendorCSS + '?v=' + version(vendorCSS) %>" rel="stylesheet" media="all" />
  <link href="<%- mainCSS + '?v=' + version(mainCSS) %>" rel="stylesheet" media="all" />
  <% } %>
</head>

<body>
  <div id="root"></div>
  <script>
    sessionStorage.setItem('config', '<%- config %>')
  </script>
  <script type="text/javascript" src="<%- vendorJS + '?v=' + version(vendorJS) %>"></script>
  <script type="text/javascript" src="<%- mainJS + '?v=' + version(mainJS) %>"></script>
</body>

</html>